//
// Generated from archetype; please customize.
//

package com.alcatel_lucent.groovystudy

import com.alcatel_lucent.scalastudy.model.Rational

/**
 * Tests for the {@link Rational} class.
 */
class RationalTest extends GroovyTestCase {
    void testRational() {
        def oneHalf = new Rational(1, 2)
        def twoThirds = new Rational(2, 3)

        assertEquals(new Rational(7, 6), oneHalf.$plus(twoThirds))
        assertFalse(twoThirds.$less(oneHalf))
    }
}
